package com.qingjiang.projectschedule.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qingjiang.projectschedule.mapper.NodeDailyrecordMapper;
import com.qingjiang.projectschedule.pojo.NodeDailyrecord;
import com.qingjiang.projectschedule.service.NodeDailyrecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 16325
 * @description 针对表【node_dailyrecord(每日节点状态记录表)】的数据库操作Service实现
 * @createDate 2024-03-25 16:14:01
 */
@Service
public class NodeDailyrecordServiceImpl extends ServiceImpl<NodeDailyrecordMapper, NodeDailyrecord>
        implements NodeDailyrecordService {
    @Autowired
    private NodeDailyrecordMapper dailyrecordMapper;

    @Override
    public List<NodeDailyrecord> selectByDate(String date) {
        LambdaQueryWrapper<NodeDailyrecord> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(NodeDailyrecord::getRecordTime, date);
        return dailyrecordMapper.selectList(queryWrapper);
    }
}




